//
//  ConnectModel.h
//  UI15图片封装\
//
//  Created by dllo on 15/5/7.
//  Copyright (c) 2015年 蓝鸥. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol ConnectModelDelegate <NSObject>

- (void)sendData:(NSData *)data;

@end

@interface ConnectModel : NSObject<NSURLConnectionDataDelegate>

- (void)createConnect:(NSString *)str;

@property (nonatomic, retain) NSMutableData * receiveData;

@property (nonatomic, assign) id<ConnectModelDelegate> delegate;

+ (void)connectUrlWith:(NSString *)url delegate:(id<ConnectModelDelegate>)delegate;

@end
